<!-- License Revision: 0 Last Revised: 6/18/2008 11:00 AM
*******************************************************************************
Copyright (c) Microsoft Corporation.  All rights reserved.


This file is licensed under the Microsoft Public License (Ms-PL). A copy of the Ms-PL should accompany this file. 
If it does not, you can obtain a copy from: 

http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx
*******************************************************************************
License -->
<UserControl x:Class="SilverlightMap.Page"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="200" Height="600" Opacity="1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<UserControl.Resources>
		<!--A Style that affects all TextBlocks-->
		<Style TargetType="TextBlock" x:Key="Header">
		  <Setter Property="HorizontalAlignment" Value="Center" />
		  <Setter Property="FontFamily" Value="Comic Sans MS"/>
		  <Setter Property="FontSize" Value="14"/>
		  <Setter Property="Foreground" Value="DarkBlue"/>
          <!--<Setter Property="Background" Value="Green"/>-->
          <Setter Property="TextAlignment"  Value="Center"/>
          <Setter Property="FontWeight"  Value="Bold"/>
        </Style>
	</UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
        <StackPanel Height="600" Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <TextBlock Text="Silverlight VE Control" Style="{StaticResource Header}"/>
            <TextBlock Text="Business/Place of Interest" Style="{StaticResource Header}"/>
            <TextBox x:Name="tbFindWhat" Width="190" />
            <TextBlock Text="Address/City" Style="{StaticResource Header}"/>
            <TextBox x:Name="tbFindWhere" Width="190" />
            <Button x:Name="btnFind" Click="btnFind_Click" Height="28" Width="131" Content="Find" Margin="4"/>
            <TextBlock Text="Find Results" Style="{StaticResource Header}"/>
            <Border BorderThickness="1" BorderBrush="Black" Margin="2">
            <ScrollViewer Height="100">
                <ItemsControl x:Name="lbFindResults">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding Visible}" Click="CheckBox_Click">
                                <StackPanel Orientation="Horizontal">
                                    <Image Source="{Binding IconPath}"/>
                                    <TextBlock VerticalAlignment="Center" FontSize="12" Text="{Binding What}" Margin="2,0"/>     
                                    <TextBlock VerticalAlignment="Center" FontSize="12" Text=" " />     
                                    <TextBlock VerticalAlignment="Center" FontSize="12" Text="{Binding Where}" />     
                                </StackPanel>
                            </CheckBox>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </ScrollViewer>                    
            </Border>                
            <CheckBox x:Name="FromCheck" Margin="2,0">
                <TextBlock Text="Directions From" Style="{StaticResource Header}"/>
            </CheckBox>
            <TextBox x:Name="tbFrom" Width="190"  Height="26"/>
            <CheckBox x:Name="ToCheck" Margin="2,0">
                <TextBlock Text="To" Style="{StaticResource Header}"/>
            </CheckBox>
            <TextBox x:Name="tbTo" Width="190" Height="26"/>
            <Button x:Name="btnDirections" Click="btnDirections_Click"  Height="28" Width="131" Content="Get Directions" Margin="3"/>
            <TextBlock Text="Route" Style="{StaticResource Header}"/>
            <ListBox x:Name="lbRoute" SelectionChanged="lbRoute_SelectionChanged" Height="135" Width="197">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Text}"/>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <Image Height="23" Width="184" Margin="0,5,0,0" Source="banner.jpg"  Stretch="UniformToFill">
             </Image>
        </StackPanel>
    </Grid>
</UserControl>
